# -*- coding: utf-8 -*-
"""
@ Created on 2024-06-14 12:23
---------
@summary: 用户表单模型
---------
@author: Lsaiah
"""

from pydantic import BaseModel
from typing import Optional


class UserCreateRequest(BaseModel):
    """创建用户请求模型"""
    username: str
    password: str
    email: Optional[str] = None
    phone: Optional[str] = None
    full_name: Optional[str] = None
    is_active: bool = True
    is_superuser: bool = False


class UserUpdateRequest(BaseModel):
    """更新用户请求模型"""
    dept_id: Optional[int] = None
    email: Optional[str] = None
    phone: Optional[str] = None
    full_name: Optional[str] = None
    is_active: Optional[bool] = None
    is_superuser: Optional[bool] = None
    username: Optional[str] = None
    id: Optional[int] = None
